<?php  

namespace app\Index\controller;
use think\Controller;
use think\Request;
use think\Db;
use think\Session;
class Music extends Controller
{
	public function musics($id)
	  {   


        $this->assign('phone',Session::get('user.phone') );
        

		$list = Db::name('tb_musics')->where('id',$id)->select();
		// var_dump($list);die;
		$lists=$list[0];
		$this->assign('list',$lists);
		$data = Db::name('tb_singers')->where('id',$lists['singerid'])->select();
		// var_dump($data);die;
		$datas=$data[0];
		$this->assign('data',$datas);

		$result = Db::name('tb_users')->select();
		// var_dump($result);die;
		$results=$result[0];
		$this->assign('users',$results);

		$p = Db::name('to_comment')->where('uid',$results['id'])->select();
		// var_dump($p);die;
		$this->assign('p',$p);
		return $this->fetch('song_details/song_details');
	}

	
}